<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>信息管理系统界面</title>
<link href="../style/css/back/style.css" rel="stylesheet" type="text/css" />
	<style>
		#imgId{
			position: relative;
			left: 1120px;
			top: 10px;
			border-radius: 25px;
		}
	</style>
<script src="../style/js/jquery-1.8.3.js" type="text/javascript"></script>
	<script type="text/javascript">
		$(function (){
			var account = window.sessionStorage.getItem("account");
			//获取用户新文件名
			var newFileName = window.sessionStorage.getItem("newFileName");
			if(account==null){
				location.replace("login.html");
				return;
			}
			$("#accountId").html(account);

			//如果用户上传了头像,显示用户头像
			if(newFileName!="null"){
				var imgsrc =  "http://127.0.0.1:8080/tomorrowNewsFiles/admin/"+account+"/"+newFileName;
				document.getElementById("imgId").innerHTML = "<img src='"+imgsrc+"' width='50' height='50'/>";
			}
		})

		//安全退出
		function exit(){
			if(confirm("您确定要退出吗?")){
				//删除前端浏览器存储的用户信息
				window.sessionStorage.removeItem("account");
				window.sessionStorage.removeItem("newFileName");
				$.get("../adminLogin/loginOut",function (res){
					location.replace("../front/index.html");
				})
			}
		}

	</script>

</head>



<body>
<table border="1" cellspacing="0" cellpadding="0" width="100%" height="100%">
	<tr style="background:url(../style/img/back/topbg.gif) repeat-x;">
		<td colspan="2">
			<div class="topleft">
				<img src="../style/img/back/logo.png" title="系统首页" />
			</div>

			<a href="admin_upload.html" id="imgId" target="rightFrame">上传头像</a>

			<div class="topright">
				<ul>
					<li><span><img src="../style/img/back/help.png" title="帮助" class="helpimg"/></span><a href="#">帮助</a></li>
					<li><a href="../back/admin/pas.html" target="rightFrame"> 修改密码</a></li>
					<li><a href="javaScript:void(0)" onclick="exit()">退出</a></li>
				</ul>
				<div class="user">
					<span id="accountId"> </span>
				</div>
			</div>

		</td>
	</tr>
	<tr>
		<td width="187" valign="top"  height="100%"  style="background:#f0f9fd;">
			<div class="lefttop"><span></span>操作菜单</div>
			<dl class="leftmenu">
				<dd>
					<div class="title">
						<span><img src="../style/img/back/leftico01.png" /></span>
						<a href="javaScript:void(0)">管理信息</a>
					</div>
					<ul class="menuson">
						<li><cite></cite>
							<a href="admin/list.html" target="rightFrame">管理员管理</a>
						</li>
						<li><cite></cite>
							<a href="role/list.html" target="rightFrame">角色管理</a>
						</li>
						<li><cite></cite>
							<a href="webmsg/list.html" target="rightFrame">网页信息管理</a>
						</li>
						<li><cite></cite>
							<a href="admsg/list.html" target="rightFrame">广告位管理</a>
						</li>
						<li><cite></cite>
							<a href="newstype/list.html" target="rightFrame">新闻类型管理</a>
						</li>
						<li><cite></cite>
							<a href="link/list.html" target="rightFrame">友情链接管理</a>
						</li>
						<li><cite></cite>
							<a href="news/list.html" target="rightFrame">新闻管理</a>
						</li>
						<li><cite></cite>
							<a href="user/list.html" target="rightFrame">用户管理</a>
						</li>
						<li><cite></cite>
							<a href="comment/list.html" target="rightFrame">评论审核</a>
						</li>
					</ul>
				</dd>
			</dl>
		</td>
		<td>
			<iframe name="rightFrame" src="" width="100%" height="600"></iframe>
		</td>
	</tr>
</table>
</body>
</html>
